//行功能菜单配置
export interface RowAction{
    view?:boolean, //启用行查看按钮
    edit?:boolean, //启用行编辑按钮
    del?:boolean    //启用行删除按钮
}
//表格工具栏配置
export interface TableAction{
    delChecked?:boolean, //删除选中按钮
    export?:boolean,    //导出xls/cvs安妮
    print?:boolean,     //打印按钮
    colFilter?:boolean  //列过滤按钮
}
export enum SortStatus{
    none=0,
    desc=1,
    asc=2
}
//表格列配置数据结构
export interface ITh extends Record<string,unknown>{
    key:string,     //列key
    name:string,    //列名字
    check?:string,//<check|radio> 启用单选或者复选功能
    lock?:boolean,  //是否锁定该列
    lockPos?:string,   //<left｜right> 锁定位置
    sort?:true,     //启用排序
    editable?:boolean, //是否可编辑 目前不支持
    dataType?:string,   //列数据类型，排序和合计列的时候需要指定
    align?:string,  //文本对齐center｜right，默认left
    sum?:boolean,   //开启合计行
    clickable?:boolean, //列是否可以点击 <table @td-click="onTdClick"/>
    href?:string, //链接地址，表面该列是link a标签
    target?:string, //<_blank|_self>
    type?:string, //列主题颜色 <primary|success|danger|info|warning>
    format?:string,//列展示模式 {name:"章三",age:21}  format="我叫\${name}，今年\${age}岁" 结果：我叫章三今年21岁
    rowAction?:RowAction, //启用行功能菜单配置
}